#include <bits/stdc++.h>
using namespace std;
template<typename T>void read(T &x){
    x=0;char c=getchar();int f=1;
    for(;!isdigit(c);c=getchar())if(c=='-')f=-1;
    for(;isdigit(c);c=getchar())x=(x<<3)+(x<<1)+(c^48);
    x*=f;
}

const int maxn=1e5+10;
int n,m;
int r[maxn];
int w[maxn];

int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    read(n);m=0;
    for(int i=1;i<=n;i++)
    {
        read(r[i]);
        w[r[i]]++;
        m=max(m,r[i]);
    }
    int sum=0;
    for(int i=1;i<=m;i++)
    {
        sum=max(sum-w[i],0)+w[i];
    }
    printf("%d",sum);
    return 0;
}
